export enum ExpireStateEnum {
  EFFECTIVE = '1',
  EXPIRED = '0',
}

// 20-菜单 40-按钮 50-字段 60-数据
export enum ResourceTypeEnum {
  BUTTON = '40',
  DATA = '60',
  FIELD = '50',
  MENU = '20',
}

// 01-内部组件 02-内链 03-外链
export enum ResourceOpenWithEnum {
  INNER_CHAIN = '02',
  INNER_COMPONENT = '01',
  OUTER_CHAIN = '03',
}

export enum MultiTenantTypeEnum {
  COLUMN = 'COLUMN',
  DATASOURCE = 'DATASOURCE',
  DATASOURCE_COLUMN = 'DATASOURCE_COLUMN',
  NONE = 'NONE',
  SCHEMA = 'SCHEMA',
}

// 数据范围
export enum DataScopeEnum {
  ALL = '01',
  CUSTOM = '07',
  SELF = '06',
  SELF_COMPANY = '03',
  SELF_COMPANY_CHILDREN = '02',
  SELF_DEPT = '05',
  SELF_DEPT_CHILDREN = '04',
}

export enum TenantStatusEnum {
  AGREED = '35',
  NORMAL = '05',
  REFUSE = '30',
  WAIT_INIT_DATASOURCE = '15',
  WAIT_INIT_SCHEMA = '10',
  WAITING = '25',
  WITHDRAW = '20',
}

export enum TenantConnectTypeEnum {
  CUSTOM = 'CUSTOM',
  SYSTEM = 'SYSTEM',
}

export enum TenantTypeEnum {
  CREATE = 'CREATE',
  REGISTER = 'REGISTER',
}

// 10-应用授权 20-应用续期 30-取消授权
export enum ApplicationGrantTypeEnum {
  CANCEL = '30',
  GRANT = '10',
  RENEWAL = '20',
}

// 代码生成方式
export enum GenTypeEnum {
  GEN = 'GEN',
  ZIP = 'ZIP',
}

// 弹窗方式
export enum PopupTypeEnum {
  DRAWER = 'DRAWER',
  MODAL = 'MODAL',
}

// 父类实体类型
export enum EntitySuperClassEnum {
  ENTITY = 'ENTITY',
  NONE = 'NONE',
  SUPER_ENTITY = 'SUPER_ENTITY',
  TREE_ENTITY = 'TREE_ENTITY',
}

// "SQL 比较条件常量定义类"
export enum SqlConditionEnum {
  EQUAL = 'EQUAL',
  LIKE = 'LIKE',
  LIKE_LEFT = 'LIKE_LEFT',
  LIKE_RIGHT = 'LIKE_RIGHT',
  NOT_EQUAL = 'NOT_EQUAL',
  ORACLE_LIKE = 'ORACLE_LIKE',
}

// 父类
export enum SuperClassEnum {
  NONE = 'NONE',
  NONE_CS = 'NONE_CS',
  SUPER_CACHE_CLASS = 'SUPER_CACHE_CLASS',
  SUPER_CLASS = 'SUPER_CLASS',
  SUPER_POI_CLASS = 'SUPER_POI_CLASS',
  SUPER_READ_CLASS = 'SUPER_READ_CLASS',
  SUPER_SIMPLE_CLASS = 'SUPER_SIMPLE_CLASS',
}

// 模板类型
export enum TplEnum {
  MAIN_SUB = 'MAIN_SUB',
  SIMPLE = 'SIMPLE',
  TREE = 'TREE',
}

// 代码模板
export enum TemplateEnum {
  // lamp 后端
  BACKEND = 'BACKEND',
  // vben2.x 前端
  WEB_PLUS = 'WEB_PLUS',
  // soybean 前端
  WEB_SOYBEAN = 'WEB_SOYBEAN',
  // vben5 前端
  WEB_VBEN5 = 'WEB_VBEN5',
}

// 数据字典数据类型
export enum DictDataTypeEnum {
  BOOLEAN = '3',
  INTEGER = '2',
  STRING = '1',
}
